<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2015-11-04 15:21:36, compiled from ../app/web/template/sysmanage/updatepassword.htm */ ?>
<?php include('../app/data/template_c/layout/header.tpl.php'); ?>


<body>
<div >
	<?php include('../app/data/template_c/layout/sidebar.tpl.php'); ?>
<div class="stl_content">

<table width="100%" border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td height="20" class="content_title">修改密码</td>
  </tr>
  <tr>
    <td height="20" bgcolor="#E7E7E7"><a href="content.html" target="stl_content">首页</a> ＞ 系统管理</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <form name="password" method="post" action="<?php  echo InitPHP::url('sysmanage|index|doPassword');  ?>"  id="password" >
  <tr>
    <td height="30">原密码：
      <input type="password" name="old_password" id="old_password" /></td>
  </tr>
  <tr>
    <td height="30">新密码：
      <input type="password" name="new_password" id="new_password" /></td>
  </tr>
  <tr>
    <td height="30">确认新密码：
      <input type="password" name="conf_password" id="conf_password" /></td>
  </tr>
  <tr>
    <td height="30"><input type="submit" name="button" id="button" value="修改" /></td>
  </tr></form>
</table>

</div>
</div>
<script src="//cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/jquery.form/3.51/jquery.form.min.js"></script>
<script type="text/javascript">
	var loginForm = function (id) {
		 $('#' + id).ajaxForm(function(result) {
		 		result = eval('(' + result + ')'); 
/* 		 		alert(result); */	
	            if (result.status == 1) {
	            			alert("密码修改成功，请重新登录！")	         
					    location.href = result.url;	
                   } else {
                	   		alert("密码修改失败："+result.msg)	            	
				}
	     });
	}
	$(document).ready(function() {	
		loginForm('password');	
	});
</script>
</body>
</html>
